#include "global.h"

class node{
private:
	node* pNext;
	node* pRear;
	int data;
public:
	node() {
		pNext = NULL;
		pRear = NULL;
		data = 0;
	}
	~node() {}

	void setNext(node* _n) {pNext = _n;}
	node* getNext() {return pNext;}

	void setRear(node* _n) {pRear = _n;}
	node* getRear() {return pRear;}
	
	void setData(int _d) {data = _d;}
	int getData() {return data;}

};
